var LoginView = function () {
  LoginView.super(this); // 调用父类的构造函数
  this.dlg;

  LoginView.prototype.init = function () {
    this.btReg.on(Laya.Event.CLICK, this, this.onButtonReg);
    this.btLogin.on(Laya.Event.CLICK, this, this.onButtonLogin);
    this.dlg = new NormalDialog();
    this.dlg.init();
  }

  LoginView.prototype.reset = function () {
    this.btReg.off(Laya.Event.CLICK, this, this.onButtonReg);
    this.btReg.off(Laya.Event.CLICK, this, this.onButtonLogin);
  }

  LoginView.prototype.onButtonReg = function () {
    this.dlg.setContext('注册页面未开放');
    // 非模式对话框
    // dlg.show();
    // 模式对话框
    // this.dlg.popup();
  }
  LoginView.prototype.onButtonLogin = function () {
    this.dlg.setContext('暂时无法登录');
  }

}

Laya.class(LoginView, 'LoginView', LoginUI); // 设置继承关系